package com.jacob.cloud.mall.zuul.feign;

import com.jacob.cloud.mall.user.model.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName UserFeignClient
 * @Description TODO
 * @Author dust_fall
 * @Date 2022/6/26 19:31
 * @Version 1.0
 */
@FeignClient("mall-cloud-user")
public interface UserFeignClient {
    /**
     * 校验是否是管理员
     * @param user
     * @return
     */
    @PostMapping("/checkAdminRole")
    public Boolean checkAdminRole(@RequestBody User user);
}
